package cn.gz.ibix.load;

import com.google.gson.JsonElement;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import cn.gz.ibix.bean.FoodType;

/**
 * 项目名称：QiYiChuAPP
 * <br>类描述：
 * <br>创建人：htliu
 * <br>创建时间：2018/3/24 19:13
 * <br>修改人:
 * <br>修改时间：2018/3/24 19:13
 * <br>修改备注：
 * <br>@version
 */
public class FoodTypeLoader extends BaseDataLoader<FoodType> {
    private FoodTypeLoader() {

    }

    public static FoodTypeLoader getInstance() {
        return SingletonHolder.INSTANCE;
    }

    @Override
    protected String api() {
        return "/restaurant/listMenus/1";
    }

    @Override
    protected List<FoodType> processData(JsonElement data) {
        return new ArrayList<>();
    }

    @Override
    protected void editParam(Map<String, String> params) {

    }

    @Override
    protected boolean usePage() {
        return false;
    }

    private static class SingletonHolder {
        private static final FoodTypeLoader INSTANCE = new FoodTypeLoader();
    }
}
